package com.example.mapper;

import com.example.domain.entity.CommentLike;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author readpage
 * @since 2023-02-03 16:15
 */
public interface CommentLikeMapper extends BaseMapper<CommentLike> {

    /**
     * 根据key查询评论点赞key列表
     * @param list uid + cid
     * @return key uid + cid
     */
    List<String> selectKeyList(List<String> list);

    /**
     * 批量删除评论点赞的状态
     * @param list uid+cid 用户id+评论id key
     */
    int deleteBatchByCid(List<String> list);
}
